<?php

namespace app\api\controller\user;

use app\api\controller\AuthController;
use app\api\service\ResellService;

class RepositoryController extends AuthController
{
    /**
     * 我的仓库
     * */
    public function index()
    {
        $resell_status  = $this->request->param('resell_status/d',0);

        $user_id = $this->request->user['user_id'];

        $goodsList = ResellService::getUserRepositoryList($user_id,$resell_status);

        return json(['code' =>0, 'data' => $goodsList, 'msg' =>'获取成功!']);
    }
}